class AccessLog {
    constructor({
                    houseId = '',
                    houseIdStr = '',
                    position = '',
                    srcIpAction,
                    destIpAction,
                    domainAction,
                    urlAction,
                    srcIpQuery = '',
                    destIpQuery = '',
                    domainQuery = '',
                    urlQuery = '',
                    accessTimeStart = '',
                    accessTimeEnd = '',
                    transProtocolQuery = '',
                    destPortQuery = '',
                    srcPortQuery = '',
                    //logTime = new Date(),
                    logTime = new Date(),
                    ...args
                } = {}) {
        this.houseId = houseId
        this.houseIdStr = houseIdStr
        this.position = position
        this.srcIpAction = srcIpAction
        this.destIpAction = destIpAction
        this.domainAction = domainAction
        this.urlAction = urlAction
        this.srcIpQuery = srcIpQuery
        this.destIpQuery = destIpQuery
        this.domainQuery = domainQuery
        this.urlQuery = urlQuery
        this.accessTimeStart = accessTimeStart
        this.accessTimeEnd = accessTimeEnd
        this.transProtocolQuery = transProtocolQuery
        this.destPortQuery = destPortQuery
        this.srcPortQuery = srcPortQuery
        this.logTime = logTime
        Object.assign(this, args)

    }
}